package db

import (
	"center/db/models"
	"context"
)

func (d *CenterDB) GetSegmentNodes(ctx context.Context, offset int) []models.Segment {
	resut := make([]models.Segment, 0)
	d.db.WithContext(ctx).Model(&models.Segment{}).Find(&resut).Limit(10).Offset(offset)
	return resut
}
